<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/1
 * Time: 11:14
 */
namespace app\admin\validate;
use think\validate;

class Admin extends Validate{

    protected $rule = [
        'username'  => 'require',
        'passwd'    => 'require',
        'code'      => 'require|captcha',
    ];

    protected $message = [
    'username.require' => '请输入用户名',
    'passwd.require'   => '请输入密码',
    'code.require'     => '请输入验证码',
    'code.captcha'     => '验证码不正确',
    ];



}